<template>
   <el-select v-model="listQuery.admin_id" placeholder="选择负责人" ref="admini" filterable class="filter-item" style="width:150px;margin-top:8px">
        <el-option label="选择负责人" value="" />
        <el-option
          v-for="item in admin_list"
          :key="item.id"
          :label="item.name"
          :value="item.id"
        />
      </el-select>
</template>

<script>
import { getAllList } from '@/api/user'
import waves from '@/directive/waves' // waves directive
export default {
  
  props: {
    beforeUpload: Function, // eslint-disable-line
    onSuccess: Function// eslint-disable-line
  },
  directives: {
    waves
  },
  data() {
    return {
      loading: false,
      nodes:[],
      listQuery: {
        page: 1,
        limit: 100,
        role_id:7,
        admin_id: '',
      },
      query: {
        page: 1,
        limit: 500,
        role_id:7,
      },
      admin_list: [],
      excelData: {
        header: null,
        results: null
      }
    }
  },
  created(){
    //this.nodes = getNodes();
    this.getAllList()
  },
  methods: {
  
    getAllList() {
      getAllList(this.query).then(response => {
        this.admin_list = response.data
      })
    },
  }
}
</script>

<style scoped>
.excel-upload-input{
  display: none;
  z-index: -9999;
}
.drop{
  border: 2px dashed #bbb;
  width: 600px;
  height: 160px;
  line-height: 160px;
  margin: 0 auto;
  font-size: 24px;
  border-radius: 5px;
  text-align: center;
  color: #bbb;
  position: relative;
}
</style>
